package com.ruoyi.system.domain.dto;

import com.ruoyi.common.core.page.PageQuery;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author wux
 * @date 2023/5/26 17:07
 */
@Data
public class TProdTaskDTO extends PageQuery {

    @ApiModelProperty(value = "状态 0未完成 1已完成")
    private Integer status;

    @ApiModelProperty(value = "项目id,必传")
    private Long projectId;

    @ApiModelProperty(value = "产品类型")
    private String prodType;

    @Data
    public static class TProdTaskAddDTO {
        @ApiModelProperty(value = "产品id")
        @NotNull
        private Long prodId;

        @ApiModelProperty(value = "计划产量")
        @NotNull
        private Integer planNum;

        @ApiModelProperty(value = "备注")
        private String remark;

        @ApiModelProperty(value = "产品类型")
        private String prodType;
    }

    @Data
    public static class TProdTaskUpdateDTO {
        @ApiModelProperty(value = "ID")
        @NotNull
        private Long id;

        @ApiModelProperty(value = "产品id")
        private Long prodId;

        @ApiModelProperty(value = "计划产量")
        private Integer planNum;

        @ApiModelProperty(value = "备注")
        private String remark;

        @ApiModelProperty(value = "产品类型")
        private String prodType;
    }

}
